package com.testfileupload.uploadimg.design.proxy.normal;

public class GamePlayer implements IGamePlayer {
    private String name = "";
    private GamePlayProxy gamePlayProxy = null;

    public GamePlayer(IGamePlayer player, String name) throws Exception {
        if (player==null){
            throw new Exception("不能创建真实角色");
        }
        this.name = name;
    }

    @Override
    public void login(String user, String password) {
        System.out.println("登录名为" + user + "的用户" + this.name + "登录");
    }

    @Override
    public void killBoss() {
        System.out.println(this.name + "杀掉bose");
    }

    @Override
    public void upgrade() {
        System.out.println(this.name + "升级");
    }
}
